﻿using System;
using System.Collections.Generic;
using System.Web;

namespace Cms.Web
{
    public class PageBase : System.Web.UI.Page
    {
        void Page_PreInit(object sender, EventArgs e)
        {
            string theme = "default";
            string cokietheme = EntLib.CookiesUtility.getCookie("apptheme");
            if (!String.IsNullOrEmpty(cokietheme))
                theme = cokietheme;
            Page.Theme = theme;//Request["ThemeName"];
        }
        protected override void OnInit(EventArgs e)
        {
            this.PreRender += new EventHandler(page_PreRender);

        }

        void page_PreRender(object sender, EventArgs e)
        {
            SetPageHeader();
        }
        public  virtual void SetPageHeader()
        { }

    }
}
